import request from '@/utils/request'
export function getBrandList(data) {
    return request({
        url: '/General/get_brand_second',
        method: 'post',
        data: data
    })
}
export function store(data) {
    return request({
        url: "/General/get_store",
        method: "post",
        data: data
    })
}
export function house(store_id, cang) {
    return request({
        url: "Stock_check/get_channel",
        method: "post",
        data: {
            store_id: store_id,
            cang: 1
        }
    })
}
// 列表
export function getList(data, page) {
    return request({
        url: '/Others_stock/gift_list/' + (page ? page : 1),
        method: 'post',
        data: data
    })
}
// 获取分页
export function getPage(data) {
    return request({
        url: '/Others_stock/gift_page',
        method: 'post',
        data: data
    })
}
export function addcar_submit(data) {
    return request({
        url: '/House_transfer/add_gift_to_cart',
        method: 'post',
        data: data
    })
}
export function car(data) {
    return request({
        url: '/House_transfer/transport_cart_gift',
        method: 'post',
        data: data
    })
}
export function delGift(data) {
    return request({
        url: '/House_transfer/del_gift_from_cart',
        method: 'post',
        data: data
    })
}
export function delCarList(data) {
    return request({
        url: '/House_transfer/clean_cart_gift',
        method: 'post',
        data: data
    })
}
// 提交
export function save(data) {
    return request({
        url: '/Others_stock/other_stock_out',
        method: 'post',
        data: data
    })
}
// 新增渠道
export function saveCana(data) {
    return request({
        url: '/Others_stock/add_channel',
        method: 'post',
        data: data
    })
}
// 新增渠道下拉列表
export function get_house_type(data) {
    return request({
        url: '/Others_stock/get_house_type',
        method: 'post',
        data: data
    })
}
// 破损信息上传
export function uplode_break_gift_img(data) {
    return request({
        url: '/House_transfer/uplode_break_gift_img',
        method: 'post',
        data: data
    })
}
// 删除图片
export function del_gift_img(data) {
    return request({
        url: '/Ims_gift/del_gift_img',
        method: 'post',
        data: data
    })
}
// 获取上传的图片
export function break_gift_img_list(data) {
    return request({
        url: '/House_transfer/break_gift_img_list',
        method: 'post',
        data: data
    })
}
export function check_img(data) {
    return request({
        url: '/Ims_gift/gift_img_upload_check',
        method: 'post',
        data: data
    })
}

//图片上传
export function upload_img(data) {
    return request({
        url: '/Ims_gift/upload',
        method: 'post',
        data: data
    })
}
